<ul>
<?php
    $storage = Zend_Auth::getInstance()->getStorage();
    $xml = 'public/xml/menu_ead_mat_'.$storage->read()->USU_ID.'.xml';
    if(is_file($xml))
    {
        $reader = new Zend_Config_Xml($xml);
        $menus = $reader->toArray();
        //echo '<pre>';print_r($menus);echo '</pre>';

        foreach($menus as $menu) {
            foreach($menu as $men) {    
                // corrigir erro quando tem apenas um menu.
                if(isset($men['DCP_ID'])) $men = array('0' => $men);
                if(is_array($men))
                foreach($men as $m) { ?>  

            <li><a href="<?php echo $this->baseUrl($this->modulo.'/materiais/index/dcp_id/'.$m['DCP_ID'].'/prs_id/'.$m['PRS_ID']); ?>"><?php echo $m['DCP_NOM']; ?></a></li>

                <?php   }   
            }
        }
    }
?>
</ul>

